﻿import request from '/@/utils/request';
enum Api {
  AddTowTickets = '/api/towTickets/add',
  DeleteTowTickets = '/api/towTickets/delete',
  UpdateTowTickets = '/api/towTickets/update',
  PageTowTickets = '/api/towTickets/page',
  DetailTowTickets = '/api/towTickets/detail',
}

// 增加二级工单
export const addTowTickets = (params?: any) =>
	request({
		url: Api.AddTowTickets,
		method: 'post',
		data: params,
	});

// 删除二级工单
export const deleteTowTickets = (params?: any) => 
	request({
			url: Api.DeleteTowTickets,
			method: 'post',
			data: params,
		});

// 编辑二级工单
export const updateTowTickets = (params?: any) => 
	request({
			url: Api.UpdateTowTickets,
			method: 'post',
			data: params,
		});

// 分页查询二级工单
export const pageTowTickets = (params?: any) => 
	request({
			url: Api.PageTowTickets,
			method: 'post',
			data: params,
		});

// 详情二级工单
export const detailTowTickets = (id: any) => 
	request({
			url: Api.DetailTowTickets,
			method: 'get',
			data: { id },
		});


